package com.cmy.scheduleLite.service.impl;

import com.cmy.scheduleLite.bean.ScheduleSetting;
import com.cmy.scheduleLite.service.ScheduleSettingLoader;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @author : Cmy
 * @date : 2025-04-09 10:45
 */
@Service
public class MemoryScheduleSettingLoader implements ScheduleSettingLoader {

    @Override
    public List<ScheduleSetting> load() {
        ScheduleSetting scheduleSetting = new ScheduleSetting();
        scheduleSetting.setJobId(1L);
        scheduleSetting.setBeanName("com.cmy.scheduleLite.ScheduleTest");
        scheduleSetting.setMethodName("sayHello");
        scheduleSetting.setMethodParams("");
        scheduleSetting.setCronExpression("0 54 10 9 4 ? ");
        scheduleSetting.setJobStatus(1);
        return Collections.singletonList(scheduleSetting);
    }
}

    